package cn.edu.wfit.modules.infomanagement.domain;

import cn.edu.wfit.common.core.annotation.Excel;
import cn.edu.wfit.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 存储班车基础配置对象 t_bus
 * 
 * @author zhanghao
 * @date 2025-11-07
 */
public class TBus extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键（自增），唯一班车标识 */
    private Long id;

    /** 车牌号（唯一） */
    @Excel(name = "车牌号", readConverterExp = "唯=一")
    private String licensePlate;

    /** 核载人数（如 50） */
    @Excel(name = "核载人数", readConverterExp = "如=,5=0")
    private Long maxCapacity;

    /** 班车状态（1 = 可用，0 = 维修 / 停用） */
    @Excel(name = "班车状态", readConverterExp = "1=,==,可=用，0,==,维=修,/=,停=用")
    private Long status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setLicensePlate(String licensePlate) 
    {
        this.licensePlate = licensePlate;
    }

    public String getLicensePlate() 
    {
        return licensePlate;
    }

    public void setMaxCapacity(Long maxCapacity) 
    {
        this.maxCapacity = maxCapacity;
    }

    public Long getMaxCapacity() 
    {
        return maxCapacity;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("licensePlate", getLicensePlate())
            .append("maxCapacity", getMaxCapacity())
            .append("status", getStatus())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
